package labox.innovation.gameserver.model.actor.instance;

import labox.innovation.gameserver.network.serverpackets.ConsignmentUIPacket;
import labox.innovation.gameserver.templates.chars.NpcTemplate;

/**
 * 拍卖师NPC
 * @author Frank
 *
 */
public class FuzeConsignmentInstance extends FuzeNpcInstance {

	public FuzeConsignmentInstance(long objectId, NpcTemplate template) {
		super(objectId, template);
	}
	
	/**
	 * 下发寄售系统UI
	 * @param player
	 */
	private void showConsignmentWindow(FuzePcInstance player) {
		player.sendPacket(new ConsignmentUIPacket(player));
	}
	
	/**
	 * 寄售系统UI
	 */
	@Override
	public void onBypassFeedback(FuzePcInstance player, String command) {
		if (command.startsWith("ShowConsignmentWindow")) {
			showConsignmentWindow(player);
		}
		
		super.onBypassFeedback(player, command);
	}

}
